package im.ok.back.service.impl;

import cn.hutool.core.util.RandomUtil;
import im.ok.back.common.ServerResponse;
import im.ok.back.service.IPasswordService;
import org.springframework.stereotype.Service;

@Service
public class PasswordServiceImpl implements IPasswordService {
    @Override
    public ServerResponse getRandomPassword(String base, int length) {
        return ServerResponse.createSuccessData(RandomUtil.randomString(length));
    }
}
